package cloud.alibaba.sentinel.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther xfanonymous
 * @create 2024-01-04 10:40
 *
 * Sentinel p3
 * 授权规则，对请求来源设置黑白名单
 */
@RestController
@Slf4j
public class EmpowerController
{
    @GetMapping(value = "/empower")
    public String requestSentinel4()
    {
        log.info("测试Sentinel授权规则empower");
        return "Sentinel授权规则";
    }
}
